package design.action.strategy;

/**
 * @author zxs
 * @since 2020/06/01
 */
public class Context {
    private Strategy strategy;

    public void setStrategy(Strategy strategy){
        this.strategy=strategy;
    }

    public void operation(){
        strategy.doA();
        strategy.doB();
    }
}
